<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    {% load static %}
    <link rel="stylesheet" type="text/css" href="https://cdn.hello8693.xyz/semantic-ui/semantic.min.css">
    <link rel="shortcut icon" href="{% static 'img/favicon.ico' %}">
    <style>
        p img {
            width: auto;
            height: auto;
            max-width: 100%;
            display: block;
        }

        .txl-footer {
            margin: 28px 0 14px !important;
            position: absolute;
            width: 100%;
            bottom: 0;
        }
    </style>

    <title>{% block title %}{% endblock %}</title>
</head>

<body>

    <div class="ui borderless top fixed menu">
        <div class="ui container">
            <a class="item " href="{% url 'home:index' %}">
                六年七班
            </a>

            <a class="item " href="{% url 'home:index' %}">
                首页
            </a>

            <a class="item " href="{% url 'teacher:index' %}">
                有关老师
            </a>

            <a class="item " href="{% url 'student:index' %}">
                有关同学
            </a>

            <a class="item " href="{% url 'events:index' %}">
                班级大事记
            </a>

            <a class="item " href="{% url 'message:index' %}">
                留言墙
            </a>

            <a class="item " href="{% url 'feedback:index' %}">
                反馈
            </a>

            {% if request.user.is_authenticated %}
            <div class="right menu">
                <div role="listbox" aria-expanded="false" class="ui item simple dropdown" tabindex="0">

                    <div aria-atomic="true" aria-live="polite" role="alert" class="divider text">Hello8693</div><i
                        class="dropdown icon"></i>
                    <div class="menu transition ">
                        <a class="item " role="option" href="{% url 'login:rename' %}">
                            <i aria-hidden="true" class="edit icon"></i>编辑资料
                        </a>
                        <a class="item " role="option" href="{% url 'login:logouts' %}">
                            <i aria-hidden="true" class="power icon"></i>登出
                        </a>

                    </div>
                </div>
            </div>
            {% else %}
            <div class="right menu">
                <a class="item " href="{% url 'login:register' %}">
                    注册
                </a>
    
                <a class="item " href="{% url 'login:login' %}">
                    登录
                </a>
            </div>
            
            {% endif %}

        </div>
    </div>
    
    <br/><br/><br/>
    {% block content %}{% endblock %}

    <div class="ui vertical segment txl-footer" style="">
        <div class="ui center aligned container">
            <div>2022 Copyright 超能少年飞 Hello8693</div>
                <a class=" " title="Gitee" target="_blank" rel="noreferrer noopener"
                    href="https://gitee.com/hello8693/django-year6-class7"><i aria-hidden="true" class="github icon"></i></a>
            </div>
        </div>
    </div>

</html>